﻿using RpcClient.Interface;
using Wedonek.RpcStore.Service.DAL;

namespace Wedonek.RpcStore.Service.LocalEvent.Event
{
        internal class ClearReduceInRankConfig : IEventHandler<ServerEvent>
        {
                public void HandleEvent (ServerEvent data, string eventName)
                {
                        if (eventName != "Delete")
                        {
                                return;
                        }
                        ReduceInRankConfigDAL objDAL = new ReduceInRankConfigDAL ();
                        objDAL.Clear (data.Datum.Id);
                }
        }
}
